#ifndef __TWO_SUM_H__
#define __TWO_SUM_H__

#include <cstddef>

// 前提是从小到达已排序
bool twoSum(const int arr[], const int n, const int sum, size_t& first, size_t& second);

bool twoSumBruteForce(const int arr[], const int n, const int sum, size_t& first, size_t& second);

bool twoSumHashTable(const int arr[], const int n, const int sum, size_t& first, size_t& second);

#endif  //__TWO_SUM_H__